@layout("/common/_container.html",{js:["/assets/modular/definition/definition.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">流程定义管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="name" class="layui-input" type="text" placeholder="请输入流程名称"/>
                            </div>
                            <div class="layui-inline">
                                <input id="KEY" class="layui-input" type="text" placeholder="请输入流程KEY"/>
                            </div>
                            <div class="layui-inline">
                                <input id="category" class="layui-input" type="text" placeholder="请输入所属分类"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon layui-icon-upload"></i>部署流程定义</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="definitionTable" lay-filter="definitionTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{#  if(d.suspendState ==1){ }}
      <a class="layui-btn  layui-btn-warm layui-btn-xs" lay-event="suspendOrActive">挂起流程</a>
    {{#  }else{  }}
      <a class="layui-btn  layui-btn-warm layui-btn-xs" lay-event="suspendOrActive">激活流程</a>
    {{#   } }}
    <a class="layui-btn  layui-btn-xs" lay-event="convertModel">转模型</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
@}